package redis

import (
	"github.com/go-redis/redis/v8"
	"hotel-app/common/nacos"
	"hotel-app/cont"
)

func InitRedis() {
	cont.Rdb = redis.NewClient(&redis.Options{
		Addr:     nacos.NacosConfig.Redis.Addr,
		Password: "", // no password set
		DB:       0,  // use default DB
	})
}
